package com.lhkk.inventoryvehicle.http

import com.cj.mvvmlib.ext.util.GsonInstance
import org.json.JSONObject

object RequestUtil {
    /**
     * 创建请求体
     * @param dataSm4 加密数据
     */
    fun createRequestJson(dataSm4: String): JSONObject {
        val requestBean =
            RequestBean(data = dataSm4, timestamp = System.currentTimeMillis().toString())
        val dataJson = GsonInstance.getInstance().gson.toJson(requestBean)
        return JSONObject(dataJson)
    }
}